import { _decorator, Component, Node, Label } from 'cc';
import { SysContant } from './constant/SysContant';
const { ccclass, property } = _decorator;

@ccclass('HeroLifeMgr')
export class HeroLifeMgr extends Component {
    start() {

    }

    update(deltaTime: number) {
        
    }

    // 显示
    showLabel() {
        this.node.active = true
    }

    // 更新hero的生命
    showHeroLife() {
        this.node.getComponent(Label).string = SysContant.inst.heroLife + ''
    }
}


